import request from '@/utils/request'

// 查询NoPlanAssign列表
export function listNoPlanAssign(query) {
  return request({
    url: '/production/NoPlanAssign/list',
    method: 'get',
    params: query
  })
}

// 查询NoPlanAssign详细
export function getNoPlanAssign(noPlanId) {
  return request({
    url: '/production/NoPlanAssign/' + noPlanId,
    method: 'get'
  })
}

// 新增NoPlanAssign
export function addNoPlanAssign(data) {
  return request({
    url: '/production/NoPlanAssign',
    method: 'post',
    data: data
  })
}

// 修改NoPlanAssign
export function updateNoPlanAssign(data) {
  return request({
    url: '/production/NoPlanAssign',
    method: 'put',
    data: data
  })
}

// 删除NoPlanAssign
export function delNoPlanAssign(noPlanId) {
  return request({
    url: '/production/NoPlanAssign/' + noPlanId,
    method: 'delete'
  })
}

// 导出NoPlanAssign
export function exportNoPlanAssign(query) {
  return request({
    url: '/production/NoPlanAssign/export',
    method: 'get',
    params: query
  })
}